package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.MessagesDO;
import com.mhc.suzuki.dal.query.MessagesQuery;

import java.util.List;


/**
 * Manager for Messages.
 */
public interface MessagesManager {
    /**
     * query count by query condition.
     */
    int countByQuery(MessagesQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(MessagesQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(MessagesDO record);

    /**
     * insert selective.
     */
    long insertSelective(MessagesDO record);

    /**
     * select by query condition.
     */
    List<MessagesDO> selectByQuery(MessagesQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<MessagesDO> selectByQueryWithPage(MessagesQuery query);

    /**
     * select by primary key.
     */
    MessagesDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( MessagesDO record,  MessagesQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(MessagesDO record, MessagesQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(MessagesDO record);
}